package common.proxy;

import lombok.Data;
import org.apache.http.client.CredentialsProvider;
import org.apache.http.client.config.RequestConfig;

import java.util.Map;

/**
 * @author claud
 * 2018年8月15日17:47:52
 * httpclient的所需参数类
 */
@Data
public class HttpClientConfig {

    public static final String USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.9 Safari/537.36";


    /**
     * 默认的超时时间--wos的一般时间都很长，需要设置为25000
     */
    public static int TIME_OUT = 15000;

    //请求配置
    private RequestConfig requestConfig;

    //代理请求配置
    private CredentialsProvider credsProvider;


    private Map<String, String> headerMap;

    private String refer;

    private String host;

    /**
     * 需要跳转的地址
     */
    private String url;

    /**
     * pdf的存放路径
     */
    private String pdfPath;


}
